﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<SLIC.Models.EntityModel.Job>" %>
<%@ Import Namespace="SLIC.Models.Enums" %>


<%
        /// <summary>
        /// 
        ///  <title>SLIC</title>
        ///  <description>Print Job page for View a particular job in Printing Mode </description>
        ///  <copyRight>Copyright (c) 2011</copyRight>
        ///  <company>IronOne Technologies (Pvt)Ltd</company>
        ///  <createdOn>2011-08-05</createdOn>
        ///  <author></author>
        ///  <modification>
        ///     <modifiedBy></modifiedBy>
        ///      <modifiedDate></modifiedDate>
        ///     <description></description>
        ///  </modification>
        ///
        /// </summary>                                                                                 
    %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Print Job</title>
    <style type="text/css">
        .txtErrorSmall
        {
            padding-left: 10px;
        }
        
        .normaltdsForm
        {
            width: 200px;
            padding-left: 10px;
        }
    </style>
</head>
<body onload="window.print();window.close();">
    <%--onload="window.print();window.close();"--%>
    <%--<body onafterprint="alert('<%: Model.Id %>')" onbeforeprint="alert('Done printing2!')" >--%>
    <%if (Model != null)
      { %>
    <h2>
        Job Details of
        <%: Model.JobNo%>
        (<%:Model.CurrentPrintStatus%>)
    </h2>
    <fieldset>
        <legend><b>General Information </b></legend>
        <%-- 
        <div class="display-label">Id</div>
        <div class="display-field"><%: Model.Id %></div>--%>
        <table border="0" cellspacing="0" cellpadding="0" style="color: #000">
            <tr>
                <td class="normaltdsForm">
                    Job Number
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.JobNo%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Vehicle Number
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.VehicleNo%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Name of Caller
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Caller_Name%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Contact Number
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Caller_ContactNo%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Time Reported
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: String.Format("{0:dd/MM/yyyy hh:mm:ss tt}", Model.TimeReported)%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Time Visited
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: String.Format("{0:dd/MM/yyyy hh:mm:ss tt}", Model.TimeVisited)%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Name of Insured
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Insured_Name%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Contact Number of the Insured
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Insured_ContactNo%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Vehicle Type and Color
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.VehicleDescription%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Date & Time of Accident
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: String.Format("{0:dd/MM/yyyy hh:mm:ss tt}", Model.Acc_Time)%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Location of
                    <br />
                    Accident / Inspection
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Acc_Location%>
                </td>
            </tr>
        </table>
        <%-- <div class="display-label">
            Job Number</div>
        <div class="display-field">
            <%: Model.JobNo %></div>
        <div class="display-label">
            Vehicle Number</div>
        <div class="display-field">
            <%: Model.VehicleNo %></div>
        <div class="display-label">
            Name of Caller</div>
        <div class="display-field">
            <%: Model.Caller_Name %></div>
        <div class="display-label">
            Contact Number</div>
        <div class="display-field">
            <%: Model.Caller_ContactNo %></div>
        <div class="display-label">
            Time Reported</div>
        <div class="display-field">
            <%: String.Format("{0:g}", Model.TimeReported) %></div>
        <div class="display-label">
            Time Visited</div>
        <div class="display-field">
            <%: String.Format("{0:g}", Model.TimeVisited) %></div>
        <div class="display-label">
            Name of Insured
        </div>
        <div class="display-field">
            <%: Model.Insured_Name %></div>
        <div class="display-label">
            Contact Number of Insured</div>
        <div class="display-field">
            <%: Model.Insured_ContactNo %></div>
        <div class="display-label">
            Vehicle Type and Color</div>
        <div class="display-field">
            <%: Model.VehicleDescription %></div>
        <div class="display-label">
            Date & Time of Accident</div>
        <div class="display-field">
            <%: String.Format("{0:g}", Model.Acc_Time) %></div>
        <div class="display-label">
            Location of Accident/ Inspection</div>
        <div class="display-field">
            <%: Model.Acc_Location %></div>--%>
    </fieldset>
    <fieldset>
        <legend><b>Policy/ Cover Note Information </b></legend>
        <table border="0" cellspacing="0" cellpadding="0" style="color: #000">
            <tr>
                <td class="normaltdsForm">
                    Policy / Cover No.
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Policy_CN_No%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Policy / Cover Period
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: String.Format("{0:dd/MM/yyyy hh:mm:ss tt}", Model.Policy_CN_StartDate)%>
                    <%if (Model.Policy_CN_EndDate != null)
                      { %>
                    to
                    <%: String.Format("{0:dd/MM/yyyy hh:mm:ss tt}", Model.Policy_CN_EndDate)%>
                    <%} %>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Policy / Cover Serial No.
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Policy_CN_SerialNo%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Cover Issued By
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.CN_IssuedBy%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Reasons for Issuing Cover Note
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.CN_Reasons%>
                </td>
            </tr>
        </table>
        <%--
        <div class="display-label">
            Policy/Cover No.</div>
        <div class="display-field">
            <%: Model.Policy_CN_No %></div>
        <div class="display-label">
            Policy/Cover Period</div>
        <div class="display-field">
            <%: String.Format("{0:g}", Model.Policy_CN_StartDate) %>
            to
            <%: String.Format("{0:g}", Model.Policy_CN_EndDate) %></div>
        <div class="display-label">
            Policy/Cover Serial No.</div>
        <div class="display-field">
            <%: Model.Policy_CN_SerialNo %></div>
        <div class="display-label">
            Cover Issued By</div>
        <div class="display-field">
            <%: Model.CN_IssuedBy %></div>
        <div class="display-label">
            Reasons for Issuing Cover Note</div>
        <div class="display-field">
            <%: Model.CN_Reasons %></div>--%>
    </fieldset>
    <fieldset>
        <legend><b>Vehicle and Driver Information </b></legend>
        <table border="0" cellspacing="0" cellpadding="0" style="color: #000">
            <tr>
                <td class="normaltdsForm">
                    Chassis No.
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%:Model.ChassyNo%>
                    <%--  <%if (!String.IsNullOrEmpty(Model.ChassyNo))
                      {%>
                   <%:Model.ChassyNo%>
                    <%}
                      else
                      { %>
                    <%:Model.ChassyNo_Reason%>
                    <%}%>--%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Engine No.
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.EngineNo%>
                    <%--  <%if (!String.IsNullOrEmpty(Model.EngineNo))
                      {%>
                    <%: Model.EngineNo %>
                    <%}
                      else
                      { %>
                    <%: Model.EngineNo_Reason %>
                    <%}%>--%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Driver Name
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.DriverName%>
                    <%--  <%if (!String.IsNullOrEmpty(Model.DriverName))
                      {%>
                    <%: Model.DriverName %>
                    <%}
                      else
                      { %>
                    <%: Model.DriverName_Reason %>
                    <%}%>--%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Driving License No.
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.License_No%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Expiry Date of License
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: String.Format("{0:dd/MM/yyyy hh:mm:ss tt}", Model.License_ExpiryDate)%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Type of D/L
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%  if (Model.License_TypeId != null)
                        {   %>
                    <%: Enum.GetName(typeof(SLIC.Models.Enums.LicenseType), Model.License_TypeId)%>
                    <%} %>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    New / Old License Type
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%if (Model.License_IsNew != null)
                      {
                          if ((bool)Model.License_IsNew)
                          { %>
                    New
                    <%}
                          else
                          { %>
                    Old
                    <%}
                      }%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Vehicle Class
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                <%
                    string temp = "";
                    foreach (var item in Model.VehicleClassIds)
                    {
                       if ((bool)Model.License_IsNew)
                       { %>
                            <% temp = temp + Enum.GetName(typeof (NewLicenseVehClasses), item) + ", "; %>
                    <% }
                       else
                       { %>
                            <% temp = temp + Enum.GetName(typeof(OldLicenseVehClasses), item) + ", "; %>
                    <% } %>
                <%  } %>
                    <% temp = temp.Trim(); %>
                    <% temp = temp.TrimEnd(','); %>
                    <%: temp %>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    License New / Old Type Id
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.License_IsNewOld_TypeId%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    NIC No. of the Driver
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.DriverNIC%>
                    <%--<%if (!String.IsNullOrEmpty(Model.DriverNIC))
                      {%>
                    <%: Model.DriverNIC%>
                    <%}
                      else
                      { %>
                    <%: Model.DriverNIC_Reason%>
                    <%}%>--%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Competence
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%:Enum.GetName(typeof(SLIC.Models.Enums.Confirmation), Model.DriverCompetence)%>
                    <%-- <%  if (Model.DriverCompetence != null)
                        {   %>
                    <%:Enum.GetName(typeof(SLIC.Models.Enums.Confirmation), Model.DriverCompetence)%>
                    <%}
                        else
                        { %>
                    <%: Model.DriverCompetence_Reason%>
                    <%} %>--%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Meter Reading
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.MeterReading%>
                </td>
            </tr>
        </table>
        <%--
        <div class="display-label">
            Chassis No.</div>
        <div class="display-field">
            <%: Model.ChassyNo %></div>
        <div class="display-label">
            Engine No.</div>
        <div class="display-field">
            <%: Model.EngineNo %></div>
        <div class="display-label">
            Driver Name</div>
        <div class="display-field">
            <%: Model.DriverName %></div>
        <div class="display-label">
            Driving License No.</div>
        <div class="display-field">
            <%: Model.License_No %></div>
        <div class="display-label">
            Expiry Date of License</div>
        <div class="display-field">
            <%: String.Format("{0:g}", Model.License_ExpiryDate) %></div>
        <div class="display-label">
            Type of D/L</div>
        <div class="display-field">
            <%: Model.License_TypeId %></div>
        <div class="display-label">
            New/ Old License Type</div>
        <div class="display-field">
            <%: Model.License_IsNew %></div>
        <div class="display-label">
            License_IsNewOld_TypeId</div>
        <div class="display-field">
            <%: Model.License_IsNewOld_TypeId %></div>
        <div class="display-label">
            NIC No. of the Driver</div>
        <div class="display-field">
            <%: Model.DriverNIC %></div>
        <div class="display-label">
            Competence</div>
        <div class="display-field">
            <%: Model.DriverCompetence %></div>
        <div class="display-label">
            Meter Reading</div>
        <div class="display-field">
            <%: Model.MeterReading %></div>--%>
    </fieldset>
    <fieldset>
        <legend><b>Damages and Vehicle Condition </b></legend>
        <table border="0" cellspacing="0" cellpadding="0" style="color: #000">
            <tr>
                <td class="normaltdsForm">
                    <b>Tyre Condition</b>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm" style="width: 100px;">
                    F/R
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall" style="width: 100px;">
                    <%:Model.Tyre_FR_Status_Enum.Value%>
                    <%--   <%:Html.DropDownListFor(model => model.Tyre_FR_Status_Enum, new SelectList(Enum.GetValues(typeof(SLIC.Models.Enums.TyreConditon))), new {disabled = "true" })%>--%>
                </td>
                <td class="normaltdsForm" style="width: 100px;">
                    F/L
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall" style="width: 100px;">
                    <%:Model.Tyre_FL_Status_Enum.Value%>
                    <%--<%:Html.DropDownListFor(model => model.Tyre_FL_Status_Enum, new SelectList(Enum.GetValues(typeof(SLIC.Models.Enums.TyreConditon))), new { disabled = "true" })%>--%>
                </td>
                <td class="normaltdsForm" style="width: 100px;">
                    R/R/L
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall" style="width: 100px;">
                    <%:Model.Tyre_RRL_Status_Enum.Value%>
                    <%-- <%:Html.DropDownListFor(model => model.Tyre_RRL_Status_Enum, new SelectList(Enum.GetValues(typeof(SLIC.Models.Enums.TyreConditon))), new { disabled = "true" })%>--%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm" style="width: 100px;">
                    R/L/R
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall" style="width: 100px;">
                    <%:Model.Tyre_RLR_Status_Enum.Value%>
                    <%--   <%:Html.DropDownListFor(model => model.Tyre_RLR_Status_Enum, new SelectList(Enum.GetValues(typeof(SLIC.Models.Enums.TyreConditon))), new { disabled = "true" })%>--%>
                </td>
                <td class="normaltdsForm" style="width: 100px;">
                    R/L/L
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall" style="width: 100px;">
                    <%:Model.Tyre_RLL_Status_Enum.Value%>
                    <%--  <%:Html.DropDownListFor(model => model.Tyre_RLL_Status_Enum, new SelectList(Enum.GetValues(typeof(SLIC.Models.Enums.TyreConditon))), new { disabled = "true" })%>--%>
                </td>
                <td class="normaltdsForm" style="width: 100px;">
                    R/R/R
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall" style="width: 100px;">
                    <%:Model.Tyre_RRR_Status_Enum.Value%>
                    <%--    <%:Html.DropDownListFor(model => model.Tyre_RRR_Status_Enum, new SelectList(Enum.GetValues(typeof(SLIC.Models.Enums.TyreConditon))), new { disabled = "true" })%>--%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Are They Contributory
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Tyre_IsContributory%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Type of Goods Carried
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Goods_Type%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Weight of Goods Carried
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Goods_Weight%>
                    Kg
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Damages to the Goods
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Goods_Damage%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Over Loaded
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.IsOverLoaded%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Is Over Weight Contributory
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Is_OL_Contributory%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Other Vehicles involved
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.OtherVeh_Involved%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Third Party Damages Property
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.ThirdParty_Damage%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Injuries (Insured + 3rd Party)
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Injuries%>
                </td>
            </tr>
            <tr class="even">
                <td class="normaltdsForm">
                    Damaged Items
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall" colspan="4">
                    <table border="1">
                        <%if (Model.DamagedItemsList != null)
                          {
                              foreach (string[] itemArray in Model.DamagedItemsList)
                              {
                        %>
                        <tr>
                            <%foreach (string item in itemArray)
                              {
                            %>
                            <td style="border: 0.5px solid #aaa;">
                                &nbsp;
                                <%:Html.Encode(item)%>
                            </td>
                            <% } %>
                        </tr>
                        <%}
                          }%>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Other Damaged Items
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <table border="1">
                        <%: Model.DamagedItems_Other%>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Pre Accident Damages
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall" colspan="4">
                    <table border="1">
                        <%if (Model.PreAccDamagesItemsList != null)
                          {
                              foreach (string[] itemArray in Model.PreAccDamagesItemsList)
                              {
                        %>
                        <tr>
                            <%foreach (string item in itemArray)
                              {
                            %>
                            <td style="border: 0.5px solid #aaa;">
                                &nbsp;
                                <%:Html.Encode(item)%>
                            </td>
                            <% } %>
                        </tr>
                        <%}
                          }%>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Other Pre Accident Damages
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.PreAccidentDamages_Other%>
                </td>
            </tr>
            <tr class="even">
                <td class="normaltdsForm">
                    Possible D/R
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <table border="1">
                        <%if (Model.PossibleDRList != null)
                          {
                              foreach (string item in Model.PossibleDRList)
                              {
                        %>
                        <tr>
                            <td>
                                &nbsp;
                                <%:Html.Encode(item)%>
                            </td>
                        </tr>
                        <%}
                          } %>
                    </table>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Other Possible D/R
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.PossibleDR_Other%>
                </td>
                <td class="normaltdsForm">
                    &nbsp;
                </td>
                <td class="colontdsForm">
                    &nbsp;
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    &nbsp;
                </td>
            </tr>
        </table>
        <%--   <div class="display-label">
            F/R</div>
        <div class="display-field">
            <%: Model.Tyre_FR_Status %></div>
        <div class="display-label">
            F/L</div>
        <div class="display-field">
            <%: Model.Tyre_FL_Status %></div>
        <div class="display-label">
            R/R/L</div>
        <div class="display-field">
            <%: Model.Tyre_RRL_Status %></div>
        <div class="display-label">
            R/L/R</div>
        <div class="display-field">
            <%: Model.Tyre_RLR_Status %></div>
        <div class="display-label">
            R/L/L</div>
        <div class="display-field">
            <%: Model.Tyre_RLL_Status %></div>
        <div class="display-label">
            R/R/R</div>
        <div class="display-field">
            <%: Model.Tyre_RRR_Status %></div>
        <div class="display-label">
            Are They Contributory</div>
        <div class="display-field">
            <%: Model.Tyre_IsContributory %></div>
        <div class="display-label">
            Type of Goods Carried</div>
        <div class="display-field">
            <%: Model.Goods_Type %></div>
        <div class="display-label">
            Weight of Goods Carried</div>
        <div class="display-field">
            <%: String.Format("{0:F}", Model.Goods_Weight) %></div>
        <div class="display-label">
            Damages to the Goods</div>
        <div class="display-field">
            <%: Model.Goods_Damage %></div>
        <div class="display-label">
            Over Loaded</div>
        <div class="display-field">
            <%: Model.IsOverLoaded %></div>
        <div class="display-label">
            Is Over Weight Contributory</div>
        <div class="display-field">
            <%: Model.Is_OL_Contributory %></div>
        <div class="display-label">
            Other Vehicles involved</div>
        <div class="display-field">
            <%: Model.OtherVeh_Involved %></div>
        <div class="display-label">
            Third Party Damages Property</div>
        <div class="display-field">
            <%: Model.ThirdParty_Damage %></div>
        <div class="display-label">
            Injuries (Insured + 3rd Party)</div>
        <div class="display-field">
            <%: Model.Injuries %></div>
        <div class="display-label">
            Damaged Items</div>
        <div class="display-field">
            <%: Model.DamagedItems %></div>
        <div class="display-label">
            Other Damaged Items</div>
        <div class="display-field">
            <%: Model.DamagedItems_Other %></div>
        <div class="display-label">
            Pre Accident Damages</div>
        <div class="display-field">
            <%: Model.PreAccidentDamages %></div>
        <div class="display-label">
            Other Pre Accident Damages</div>
        <div class="display-field">
            <%: Model.PreAccidentDamages_Other %></div>
        <div class="display-label">
            Possible D/R</div>
        <div class="display-field">
            <%: Model.PossibleDR %></div>
        <div class="display-label">
            Other Possible D/R</div>
        <div class="display-field">
            <%: Model.PossibleDR_Other %></div>--%>
    </fieldset>
    <fieldset>
        <legend><b>Other Information </b></legend>
        <table border="0" cellspacing="0" cellpadding="0" style="color: #000">
            <tr>
                <td class="normaltdsForm">
                    Purpose of Journey
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: SLIC.Models.Enums.Settings.GetEnumDescription((SLIC.Models.Enums.JourneyPurpose)Model.Journey_Purpose)%>
                    <%--     <%:Model.Journey_Purpose%>--%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Relationship between Driver & Insured
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: SLIC.Models.Enums.Settings.GetEnumDescription((SLIC.Models.Enums.RelationshipType)Model.DriverRelationshipEnum)%>
                    <%-- <%: Model.DriverRelationshipEnum.Value%>--%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    PAV Value <font style="font-size: 12px">(Rs.)</font>
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%:  String.Format("{0:F}", Model.PavValue)%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Consistency by CSR
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%if (Model.CSR_Consistency != null)
                      {%>
                    <%:Enum.GetName(typeof(SLIC.Models.Enums.CSR_Consistency), Model.CSR_Consistency)%>
                    <%}%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Approximate Cost of Repair <font style="font-size: 12px">(Rs.)</font>
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: String.Format("{0:F}", Model.Approx_RepairCost)%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    On Site Estimation
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%if (Model.SiteEstimation != null)
                      {%>
                    <%--         <%: Enum.GetName(typeof(SLIC.Models.Enums.OnSiteEstimation), Model.SiteEstimation)%>--%>
                    <%: SLIC.Models.Enums.Settings.GetEnumDescription((SLIC.Models.Enums.OnSiteEstimation)Model.SiteEstimation)%>
                    <%}%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Comment
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.Comment%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Nearest Police Station
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%:Model.Nearest_PoliceStation%>
                </td>
            </tr>
            <%--   <tr>
                <td class="normaltdsForm">
                    Cover Note Reasons - Other
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%:Model.CN_Reasons_Other%>
                </td>
            </tr>--%>
            <tr>
                <td class="normaltdsForm">
                    Claim Processing Branch
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%:Model.ProcessingBranch%>
                </td>
            </tr>
            <tr>
                <td class="normaltdsForm">
                    Name of CSR
                </td>
                <td class="colontdsForm">
                    :
                </td>
                <td class="normaltdsForm txtErrorSmall">
                    <%: Model.CSR_UserName%>
                </td>
            </tr>
        </table>
        <%--
        <div class="display-label">
            Purpose of Journey</div>
        <div class="display-field">
            <%: Model.Journey_PurposeId %></div>
        <div class="display-label">
            Relationship between Driver & Insured</div>
        <div class="display-field">
            <%: Model.DriverRelationship %></div>
        <div class="display-label">
            Pav Value <font style="font-size: 12px">(Rs.)</font></div>
        <div class="display-field">
            <%: String.Format("{0:F}", Model.PavValue) %></div>
        <div class="display-label">
            Consistency by CSR</div>
        <div class="display-field">
            <%: Model.CSR_Consistency %></div>
        <div class="display-label">
            Approximate Cost of Repair <font style="font-size: 12px">(Rs.)</font></div>
        <div class="display-field">
            <%: String.Format("{0:F}", Model.Approx_RepairCost) %></div>
        <div class="display-label">
            On Site Estimation</div>
        <div class="display-field">
            <%: Model.SiteEstimation %></div>
        <div class="display-label">
            Comment</div>
        <div class="display-field">
            <%: Model.Comment %></div>
        <div class="display-label">
            Nearest Police Station</div>
        <div class="display-field">
            <%: Model.Nearest_PoliceStation %></div>
        
        <div class="display-label">
            Claim Processing Branch</div>
        <div class="display-field">
            <%: Model.ProcessingBranch %></div>
        <div class="display-label">
            Name of CSR</div>
        <div class="display-field">
            <%: Model.CSR_UserName %></div>--%>
        <%--   
        <div class="display-label">CN_Reasons_Other</div>
        <div class="display-field"><%: Model.CN_Reasons_Other %></div>--%>
    </fieldset>
    <%}
      else
      {%>
    Error in printing. Please contact the administrator.
    <%   } %>
    <br />
    <font color="gray">&copy; Sri Lanka Insurance Corporation Ltd. All rights reserved.</font>
</body>
</html>
